import { http } from '@/utils/http'

/**
 * 获取歌曲详情
 */
export const getSongDetailAPI = (ids: number) => {
  return http({
    method: 'GET',
    url: `song/detail`,
    data: {
      ids,
    },
  })
}

/**
 * 获取音乐 url
 */
export const getSongUrlAPI = (id: number) => {
  return http({
    method: 'GET',
    url: `song/url`,
    data: {
      id,
    },
  })
}

/**
 * 获取音乐 歌词
 */
export const getLyricAPI = (id: number) => {
  return http({
    method: 'GET',
    url: `lyric`,
    data: {
      id,
    },
  })
}
